const app=getApp();
Component({


  /**
   * 组件的初始数据
   */
  data: {
    list:[],
    tips_index: 0,
    tips_img: '',
    tips_nickname: '',
    tips_number: 0,
    tips_text: '',
    tips_flash: false,
  },

  attached: function () {

  },
  ready: function () {
    this.getbroadCast();
    // this.gettips();
  },
  moved: function () {

  },
  detached: function () {

  },
  /**
   * 组件的方法列表
   */
  methods: {
    getbroadCast(){
      let user=app.functions.getLocalStorage('user');
      let shop=app.functions.getLocalStorage('shop');
      if(app.functions.isEmpty(user))return;
      let params={
        centerId:shop.centreId
      };
      app.api.broadCast(params,(response)=>{
        this.setData({
          list:response.data
        })
      },(error)=>{

      })
    }
  }
})
